<%-- 
    Document   : adminpage
    Created on : Feb 23, 2012, 11:33:08 PM
    Author     : Adjell Ian
--%>

<%@ page language="java" contentType="text/html" import="java.util.*"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<jsp:include page="admincheck.jsp" />
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
         <s:url action="viewdetails.action" var="view">
            <s:param name="manager.username"><s:property value="#session.login.username"/></s:param>
        </s:url>
        <h1>Hello Admin!</h1>
          Welcome Back! <a href=<s:property value="#view" />><s:property value="#session.login.username"/></a> <br>
        <b>Login Time:</b><%= new Date(session.getLastAccessedTime())%>
        <br/><br/>
        <a href="logouta.action">Logout</a><br>
        <a href="addproduct.jsp">Add Product</a><br>
        <a href="registeradmin.jsp">Add Manager</a><br>
        <a href="viewadmins.jsp">View Admin</a><br>
        <a href="viewcustomers.jsp">View Customers</a><br>
        <a href="viewusers.jsp">View Users</a><br>
    </body>
</html>
